﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>    
    <script type="text/javascript" src="dojo/dojo/dojo.js"></script>
    <link rel="stylesheet" href="dojo/dijit/themes/claro/claro.css"/>
    <script type="text/javascript" >
        dojo.ready(function () {
           // alert("你好");
           // var div1 = dojo.byId("div1");
           // div1.innerHTML = "我是DIV1";
            var div2 = dojo.query("#div1")[0];
            div2.innerHTML = "我是query";
            
            dojo.create("div", { innerHTML: "<p>hi</p>" }, dojo.body());
            //dojo.empty(div2);
            dojo.destroy(div2);

        });
    </script>
</head>
<body>
    <div id="div1"></div>
</body>
</html>
